//
//  ActivityView.h
//  OrderSeat
//
//  Created by 王威 on 13-12-25.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "EGORefreshTableHeaderView.h"

@class ActivityDataSource;
@class ActivityViewController;
@interface ActivityView : UIView<UIScrollViewDelegate,EGORefreshTableDelegate>

@property (assign, nonatomic) int activityType;
@property (assign, nonatomic) BOOL reloading;
@property (assign, nonatomic) BOOL moreLoading;
@property (strong, nonatomic) UITableView *activityTable;
@property (strong, nonatomic) EGORefreshTableHeaderView *refreshHeaderView;

@property (strong, nonatomic) ActivityViewController *activityVC;
@property (strong, nonatomic) ActivityDataSource *dataSource;

- (id)initWithFrame:(CGRect)frame andActivityType:(ActivityType)activityType;

@end

@interface ActivityDataSource : BaseDataSource<UITableViewDelegate,UITableViewDataSource>

@property (assign, nonatomic) int pageNumber;
@property (strong, nonatomic) NSMutableArray *activityList;
@property (strong, nonatomic) ActivityView *view;

- (void)fetchActivity;
- (void)removeWithId:(NSString *)activityId;

@end

